package com.example.u15.prac1;

class Holder4<T> {
    private T a;

    public Holder4(T a) {
        this.a = a;
    }

    public T get() {
        return a;
    }

    public void set(T a) {
        this.a = a;
    }

    public static void main(String[] args) {
        Holder4<Person> holder4 = new Holder4<>(new Person());
        holder4.set(new Student());
    }
}
